import { ref } from 'vue'
import PageContent from '@/components/page-content'

export function pageSearchReset() {
  const pageContentRef = ref<InstanceType<typeof PageContent>>()
  //监听到发射搜索和重置事件
  const getQueryData = (query: any = {}) => {
    pageContentRef.value?.getData(query)
  }

  return [pageContentRef, getQueryData]
}
